package com.atguigu.gulimall.search;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/**
 * 使用es搜索服务
 */
@EnableRedisHttpSession // 整合redis作为session存储，
@EnableFeignClients //开启远程调用
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class}) // 忽略数据库配置信息
@EnableDiscoveryClient // 加入nacos服务
public class GulimallSearchApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallSearchApplication.class, args);
    }

}
